

#ifndef _JOYSTICK_
#define _JOYSTICK_

struct joystick_event
{
	unsigned int time;      
	short value;   
	unsigned char type;
	unsigned char number;
};

class Joystick
{
	public:
		int fd;
		float axis[4];
		unsigned char buttons[16];
		
		Joystick(const char * device);
		void Update();
		~Joystick();
		
};

#endif
